//
//  LTFJokeWebModel.m
//  NeteaseNews
//
//  Created by liutaifeng on 16/4/28.
//  Copyright © 2016年 liutaifeng. All rights reserved.
//

#import "LTFBeautyWebModel.h"
#import "LTFBeautyWebContentModel.h"
@implementation LTFBeautyWebModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"photos"]) {
        NSArray *array = (NSArray *)value;
        NSMutableArray *tempArray = [NSMutableArray array];
        for (NSDictionary *dic in array) {
            LTFBeautyWebContentModel *model = [[LTFBeautyWebContentModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [tempArray addObject:model];
            [model release];
        }
        _photos = [tempArray retain];
    }
    else {
        [super setValue:value forUndefinedKey:key];
    }
}
@end
